-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WW-5370] Makes HttpParameters case-insensitive #807
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
P.S. I'm not sure how much it's hard to implement but you might know better: Looks like that same functionality can be achieved with less code by replacing
final private Map<String, Parameter> parameters;
with
final private Map<String, Parameter> parameters = new TreeMap<String, Parameter>(String.CASE_INSENSITIVE_ORDER);
Or using Apache Commons CaseInsensitiveMap.
Yeah good call - would be better to change the underlying map to be one of the off-the-shelf implementations. The Apache Commons one probably makes more sense. |
Thanks for the ideas! I decided to use |
core/src/main/java/org/apache/struts2/dispatcher/HttpParameters.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/struts2/dispatcher/HttpParameters.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/struts2/dispatcher/HttpParameters.java
Outdated
Show resolved
Hide resolved
7bea060
to
4eaab8a
Compare
SonarCloud Quality Gate failed. 0 Bugs 75.0% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Lukasz! 🙇
Closes WW-5370